﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>临沂市人才统计系统</title>
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
    <script src="/script/echarts.min.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <link href="~/css/views/Privacy.css" rel="stylesheet">
</head>
<body>
    <nav class="navbar">
        <a href="#" class="logo">临沂市人才监测系统</a>

        <ul class="nav-links">
            <li><a href="#" id="indexStudentLink">首页</a></li>
            <li><a href="#" id="addStudentLink">人员添加</a></li>
            <li><a href="#" id="listStudentLink">人员列表</a></li>
            <li><a href="#">关于我们</a></li>
            
        </ul>
        <div class="user-menu" id="userMenu">
            <span class="username" id="username"></span>
            <div class="logout-dropdown">
                <button class="logout-btn" onclick="handleLogout()">退出登录</button>
            </div>
        </div>
        <div class="hamburger">
            <div class="line1"></div>
            <div class="line2"></div>
            <div class="line3"></div>
        </div>
    </nav>

    <div class="content">
        <div id="homeContent">
            <div id="main" style="width: 100%; height:700px;"></div>
        </div>

        <!-- 人员列表 -->
        <div id="listStudentForm" style="display: none;">

            <h1>人员列表</h1>
            <div style="display: flex; gap: 10px; align-items: center;">
                <input type="text" id="searchInput" placeholder="按姓名或籍贯搜索" class="search-box">
                <button  id="refreshBtn" class="refresh-btn">刷新数据</button>
            </div>
            
            <div id="studentTableContainer">
                <table class="student-table">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>姓名</th>
                            <th>年龄</th>
                            <th>学历</th>
                            <th>籍贯</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody id="studentTableBody">
                        <!-- 数据将通过JavaScript动态加载 -->
                    </tbody>
                </table>
                <div id="loadingMessage" class="loading">正在加载数据</div>
                <div id="errorMessage" class="error" style="display: none;"></div>
            </div>
        </div>

        <div id="messageBox" class="message-box"></div>

        <!-- 添加人员表单 -->
        <div id="addStudentForm" class="student-form" style="display: none;">
            <h2>添加新人员</h2>
            <form id="studentForm">
                <div class="form-group">
                    <label for="name">人员姓名</label>
                    <input type="text" id="name" name="name" required placeholder="请输入人员姓名">
                </div>
                <div class="form-group">
                    <label for="age">年龄</label>
                    <input type="number" id="age" name="age" required placeholder="请输入年龄">
                </div>
                <div class="form-group">
                    <label for="grade">学历</label>
                    <input type="text" id="grade" name="grade" required placeholder="请输入学历">
                </div>
                <div class="form-group">
                    <label for="grade">籍贯</label>
                    <input type="text" id="local" name="local" required placeholder="请输入籍贯">
                </div>
                <button type="submit" class="submit-btn">提交</button>
            </form>
        </div>
    </div>

    <!-- 编辑弹窗 -->
    <div class="modal-overlay" id="editModal">
        <div class="modal-content">
            <div class="modal-header">
                <span class="modal-title">修改信息</span>
                <button class="close-btn" id="closeModalBtn">&times;</button>
            </div>
            <div class="modal-body">
                <form id="editForm">
                    <div class="form-group">
                        <label for="username">ID</label>
                        <input type="text" id="editid" name="editid" required disabled>
                    </div>
                    <div class="form-group">
                        <label for="username">用户名</label>
                        <input type="text" id="editname" name="editname" required>
                    </div>
                    <div class="form-group">
                        <label for="email">年龄</label>
                        <input type="text" id="editage" name="editage" required>
                    </div>
                    <div class="form-group">
                        <label for="remarks">学历</label>
                        <input type="text" id="editgrade" name="editgrade" required>
                    </div>
                    <div class="form-group">
                        <label for="remarks">籍贯</label>
                        <input type="text" id="editlocal" name="editlocal" required>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button class="btn btn-secondary" id="cancelBtn">取消</button>
                <button class="btn btn-primary" id="saveBtn">保存</button>
            </div>
        </div>
    </div>

    <script>
        // 获取用户数据
        function fetchUserData() {
            fetch('/home/user')   
                .then(response => response.json())
                .then(data => {
                    console.log(data)
                    if(data.name) {
                        document.getElementById('username').textContent = "你好！"+data.name;
                    } else {
                        console.error('用户信息获取失败');
                    }
                })
                .catch(error => console.error('请求失败:', error));
        }

        // 退出登录处理
        function handleLogout() {
          window.location.href = 'http://localhost:59571/';

        }

        // 页面加载时执行
        window.addEventListener('DOMContentLoaded', () => {
            fetchUserData();
            // 添加移动端触摸事件支持
            document.getElementById('userMenu').addEventListener('touchstart', function() {
                this.classList.toggle('active');
            });
        });

        // 初始化图表
        var myChart = echarts.init(document.getElementById('main'));

        // 直接从 Razor 获取 JSON 数据
        var linyiJson = { "type": "FeatureCollection", "features": [{ "type": "Feature", "properties": { "adcode": 371302, "name": "兰山区", "center": [118.327667, 35.061631], "centroid": [118.284576, 35.199955], "childrenNum": 0, "level": "district", "parent": { "adcode": 371300 }, "subFeatureIndex": 0, "acroutes": [100000, 370000, 371300] }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[118.380756, 35.031046], [118.368032, 35.066461], [118.368674, 35.071891], [118.374028, 35.078146], [118.377133, 35.086675], [118.381791, 35.094671], [118.385431, 35.103841], [118.388412, 35.129069], [118.394426, 35.139352], [118.4074, 35.152933], [118.41295, 35.163176], [118.41875, 35.166914], [118.420784, 35.171458], [118.426352, 35.177797], [118.442949, 35.187745], [118.449552, 35.19835], [118.455477, 35.209779], [118.472466, 35.24669], [118.480479, 35.251101], [118.483745, 35.256995], [118.484994, 35.267006], [118.480871, 35.272642], [118.481996, 35.280053], [118.480515, 35.286694], [118.474322, 35.287609], [118.457083, 35.301805], [118.452372, 35.307256], [118.452479, 35.310677], [118.434383, 35.324339], [118.427334, 35.322199], [118.420338, 35.324284], [118.416519, 35.328947], [118.411843, 35.33019], [118.407614, 35.334341], [118.401832, 35.333025], [118.391481, 35.335694], [118.374867, 35.345567], [118.360108, 35.34149], [118.354915, 35.342112], [118.348508, 35.331964], [118.334035, 35.33019], [118.316921, 35.329861], [118.311567, 35.330867], [118.311139, 35.339699], [118.308658, 35.350741], [118.304982, 35.355896], [118.297594, 35.358858], [118.287636, 35.370501], [118.28744, 35.374504], [118.27393, 35.38207], [118.266417, 35.380955], [118.251623, 35.382051], [118.248607, 35.383586], [118.238024, 35.387204], [118.233848, 35.386748], [118.230279, 35.381795], [118.236614, 35.376331], [118.24195, 35.373955], [118.244181, 35.369203], [118.242628, 35.361216], [118.237132, 35.355348], [118.233188, 35.347085], [118.226496, 35.346994], [118.225889, 35.349571], [118.217947, 35.352697], [118.220482, 35.356737], [118.215681, 35.354854], [118.215431, 35.346043], [118.211077, 35.34341], [118.215074, 35.339205], [118.212968, 35.336645], [118.219304, 35.336499], [118.221909, 35.333756], [118.217751, 35.333061], [118.210506, 35.321669], [118.212308, 35.316804], [118.206544, 35.314499], [118.202118, 35.320206], [118.197996, 35.322016], [118.193231, 35.31706], [118.189626, 35.317609], [118.188038, 35.328051], [118.183237, 35.330849], [118.17344, 35.330282], [118.172244, 35.326917], [118.163839, 35.325235], [118.159538, 35.326222], [118.151811, 35.31684], [118.149812, 35.322985], [118.142656, 35.324704], [118.139211, 35.321943], [118.133358, 35.322894], [118.132269, 35.315725], [118.135999, 35.313512], [118.135535, 35.310018], [118.145208, 35.300324], [118.145868, 35.29586], [118.14196, 35.288963], [118.142299, 35.283218], [118.138694, 35.274106], [118.140246, 35.272148], [118.134411, 35.264572], [118.138355, 35.258239], [118.131413, 35.255787], [118.129003, 35.25262], [118.129253, 35.241271], [118.11553, 35.23252], [118.116333, 35.229115], [118.128093, 35.220473], [118.139193, 35.218513], [118.149633, 35.211152], [118.166855, 35.208973], [118.178205, 35.206372], [118.186396, 35.203185], [118.178615, 35.199834], [118.173315, 35.19531], [118.168871, 35.187213], [118.164856, 35.183934], [118.158431, 35.183], [118.153595, 35.170121], [118.147956, 35.15953], [118.139765, 35.159218], [118.136802, 35.148626], [118.126808, 35.138289], [118.123239, 35.120526], [118.119581, 35.11112], [118.115101, 35.103987], [118.112389, 35.092526], [118.120812, 35.071212], [118.125773, 35.070277], [118.126666, 35.063654], [118.133626, 35.058058], [118.13516, 35.048829], [118.133037, 35.040241], [118.129485, 35.032918], [118.136677, 35.03134], [118.154166, 35.035194], [118.165659, 35.039562], [118.1857, 35.049012], [118.197389, 35.052205], [118.207829, 35.045599], [118.214218, 35.043709], [118.226371, 35.046627], [118.232528, 35.049691], [118.241147, 35.048756], [118.249553, 35.038039], [118.260296, 35.035157], [118.265864, 35.038149], [118.27186, 35.038442], [118.276, 35.041617], [118.27691, 35.047251], [118.281247, 35.048242], [118.296291, 35.04404], [118.2987, 35.046205], [118.304125, 35.045049], [118.303822, 35.041801], [118.310532, 35.040938], [118.31121, 35.033487], [118.314315, 35.03591], [118.324434, 35.034754], [118.324987, 35.031303], [118.333375, 35.030771], [118.34692, 35.026054], [118.349222, 35.019244], [118.354201, 35.019795], [118.35429, 35.025834], [118.366122, 35.026807], [118.368728, 35.030055], [118.380756, 35.031046]]]] } }, { "type": "Feature", "properties": { "adcode": 371311, "name": "罗庄区", "center": [118.284795, 34.997204], "centroid": [118.267563, 34.92875], "childrenNum": 0, "level": "district", "parent": { "adcode": 371300 }, "subFeatureIndex": 1, "acroutes": [100000, 370000, 371300] }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[118.430689, 34.934928], [118.421748, 34.949498], [118.414877, 34.963533], [118.414502, 34.966784], [118.408595, 34.975802], [118.406971, 34.98054], [118.400761, 34.987794], [118.387983, 35.008781], [118.380756, 35.031046], [118.368728, 35.030055], [118.366122, 35.026807], [118.35429, 35.025834], [118.354201, 35.019795], [118.349222, 35.019244], [118.34692, 35.026054], [118.333375, 35.030771], [118.324987, 35.031303], [118.324434, 35.034754], [118.314315, 35.03591], [118.31121, 35.033487], [118.310532, 35.040938], [118.303822, 35.041801], [118.304125, 35.045049], [118.2987, 35.046205], [118.296291, 35.04404], [118.281247, 35.048242], [118.27691, 35.047251], [118.276, 35.041617], [118.27186, 35.038442], [118.265864, 35.038149], [118.260296, 35.035157], [118.249553, 35.038039], [118.241147, 35.048756], [118.232528, 35.049691], [118.226371, 35.046627], [118.214218, 35.043709], [118.207829, 35.045599], [118.197389, 35.052205], [118.1857, 35.049012], [118.165659, 35.039562], [118.154166, 35.035194], [118.136677, 35.03134], [118.137587, 35.025063], [118.131395, 35.021906], [118.124595, 34.997287], [118.127594, 34.991228], [118.115994, 34.981165], [118.108159, 34.978943], [118.105964, 34.961622], [118.110943, 34.956516], [118.106767, 34.948451], [118.108213, 34.941634], [118.101806, 34.940697], [118.101806, 34.935699], [118.099219, 34.921035], [118.107838, 34.922616], [118.109676, 34.926328], [118.118367, 34.928662], [118.132787, 34.924159], [118.135642, 34.926475], [118.13566, 34.919473], [118.131627, 34.913003], [118.13268, 34.907894], [118.136195, 34.907563], [118.147028, 34.913647], [118.152185, 34.913224], [118.15563, 34.916643], [118.159538, 34.913003], [118.159805, 34.909291], [118.171673, 34.9135], [118.179097, 34.920484], [118.186664, 34.916091], [118.200583, 34.914658], [118.202475, 34.910724], [118.210345, 34.910651], [118.212023, 34.905044], [118.221874, 34.897673], [118.22257, 34.895155], [118.220535, 34.854829], [118.220535, 34.848483], [118.2147, 34.850727], [118.215306, 34.853063], [118.209542, 34.856355], [118.203831, 34.847048], [118.199638, 34.847876], [118.198103, 34.844068], [118.19432, 34.844638], [118.192696, 34.837666], [118.195694, 34.837243], [118.198192, 34.822708], [118.197014, 34.817979], [118.18968, 34.814741], [118.185254, 34.815605], [118.181256, 34.808925], [118.190429, 34.809661], [118.188769, 34.797607], [118.186414, 34.794827], [118.186164, 34.786378], [118.192017, 34.783267], [118.190572, 34.772147], [118.198817, 34.769975], [118.209542, 34.769183], [118.206365, 34.767011], [118.213325, 34.762426], [118.21213, 34.75854], [118.221392, 34.757491], [118.226299, 34.76458], [118.228423, 34.764322], [118.235508, 34.770767], [118.243824, 34.770675], [118.253104, 34.777487], [118.259279, 34.779438], [118.265775, 34.789342], [118.265578, 34.802686], [118.280141, 34.809385], [118.286458, 34.796208], [118.284834, 34.785771], [118.2886, 34.787096], [118.292401, 34.780984], [118.301609, 34.789618], [118.317153, 34.788919], [118.328949, 34.803607], [118.336016, 34.818697], [118.349097, 34.826149], [118.353541, 34.832515], [118.357717, 34.844105], [118.369102, 34.853136], [118.374724, 34.860254], [118.365926, 34.865827], [118.363427, 34.863712], [118.354719, 34.86739], [118.362321, 34.872227], [118.357128, 34.880428], [118.365676, 34.881531], [118.374313, 34.879196], [118.378079, 34.8828], [118.388037, 34.886753], [118.389054, 34.889676], [118.385539, 34.896883], [118.397424, 34.904769], [118.402617, 34.913132], [118.410969, 34.919013], [118.419749, 34.920925], [118.429707, 34.927614], [118.430689, 34.934928]]]] } }, { "type": "Feature", "properties": { "adcode": 371312, "name": "河东区", "center": [118.398296, 35.085004], "centroid": [118.51276, 35.128335], "childrenNum": 0, "level": "district", "parent": { "adcode": 371300 }, "subFeatureIndex": 2, "acroutes": [100000, 370000, 371300] }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[118.614662, 35.098926], [118.622675, 35.101677], [118.634275, 35.113265], [118.637701, 35.119939], [118.639968, 35.130278], [118.647035, 35.142999], [118.646803, 35.156011], [118.648284, 35.160171], [118.654227, 35.167812], [118.660294, 35.170524], [118.67168, 35.179025], [118.672554, 35.181993], [118.668379, 35.190034], [118.660062, 35.200896], [118.656672, 35.212379], [118.657332, 35.22809], [118.660401, 35.237189], [118.64823, 35.239953], [118.639165, 35.240942], [118.631812, 35.237701], [118.623567, 35.239624], [118.60888, 35.238617], [118.591802, 35.255], [118.587697, 35.270647], [118.582807, 35.275368], [118.570404, 35.277985], [118.567692, 35.282212], [118.567799, 35.28814], [118.574009, 35.297854], [118.584735, 35.30486], [118.587126, 35.311683], [118.572671, 35.324576], [118.576561, 35.333975], [118.573099, 35.340558], [118.574241, 35.347286], [118.581344, 35.350997], [118.585645, 35.357578], [118.586037, 35.366261], [118.59148, 35.372292], [118.593604, 35.377647], [118.58279, 35.379895], [118.576258, 35.386327], [118.575401, 35.391078], [118.57094, 35.389817], [118.562195, 35.391078], [118.523827, 35.402114], [118.513547, 35.40237], [118.504178, 35.397218], [118.500663, 35.393307], [118.498717, 35.387351], [118.486475, 35.383696], [118.484012, 35.373297], [118.48155, 35.368216], [118.484958, 35.35416], [118.483655, 35.348017], [118.475464, 35.339443], [118.474268, 35.325125], [118.469771, 35.324741], [118.456869, 35.317444], [118.452479, 35.310677], [118.452372, 35.307256], [118.457083, 35.301805], [118.474322, 35.287609], [118.480515, 35.286694], [118.481996, 35.280053], [118.480871, 35.272642], [118.484994, 35.267006], [118.483745, 35.256995], [118.480479, 35.251101], [118.472466, 35.24669], [118.455477, 35.209779], [118.449552, 35.19835], [118.442949, 35.187745], [118.426352, 35.177797], [118.420784, 35.171458], [118.41875, 35.166914], [118.41295, 35.163176], [118.4074, 35.152933], [118.394426, 35.139352], [118.388412, 35.129069], [118.385431, 35.103841], [118.381791, 35.094671], [118.377133, 35.086675], [118.374028, 35.078146], [118.368674, 35.071891], [118.368032, 35.066461], [118.380756, 35.031046], [118.387983, 35.008781], [118.400761, 34.987794], [118.406971, 34.98054], [118.408595, 34.975802], [118.414502, 34.966784], [118.414877, 34.963533], [118.421748, 34.949498], [118.430689, 34.934928], [118.439058, 34.931969], [118.449159, 34.919638], [118.449748, 34.91043], [118.451997, 34.904383], [118.471021, 34.894033], [118.480354, 34.886789], [118.492507, 34.879711], [118.497664, 34.872668], [118.505909, 34.869284], [118.523059, 34.867887], [118.529252, 34.865625], [118.532, 34.859721], [118.528556, 34.844785], [118.528895, 34.838016], [118.533017, 34.829847], [118.545438, 34.829755], [118.549846, 34.849292], [118.561178, 34.858875], [118.561517, 34.867592], [118.548811, 34.881402], [118.545724, 34.886183], [118.548472, 34.900265], [118.548811, 34.912103], [118.542297, 34.92449], [118.540191, 34.934413], [118.547008, 34.94022], [118.546937, 34.950931], [118.553344, 34.967721], [118.554861, 34.974608], [118.55122, 34.985572], [118.553576, 34.992366], [118.553201, 35.000959], [118.536765, 35.008946], [118.532428, 35.016491], [118.53357, 35.022089], [118.541351, 35.02945], [118.549578, 35.032845], [118.561785, 35.044168], [118.561928, 35.05182], [118.570583, 35.057031], [118.575366, 35.061434], [118.590499, 35.061563], [118.60035, 35.069708], [118.598815, 35.075688], [118.599672, 35.08165], [118.603223, 35.083099], [118.611075, 35.092067], [118.614662, 35.098926]]]] } }, { "type": "Feature", "properties": { "adcode": 371321, "name": "沂南县", "center": [118.455395, 35.547002], "centroid": [118.407078, 35.538035], "childrenNum": 0, "level": "district", "parent": { "adcode": 371300 }, "subFeatureIndex": 3, "acroutes": [100000, 370000, 371300] }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[118.219107, 35.762825], [118.216502, 35.763407], [118.217394, 35.768735], [118.2137, 35.770881], [118.193856, 35.765098], [118.182309, 35.752493], [118.166284, 35.745399], [118.155326, 35.736594], [118.152667, 35.726277], [118.147188, 35.721219], [118.145904, 35.714467], [118.147313, 35.709007], [118.152792, 35.704075], [118.160609, 35.690041], [118.159984, 35.683378], [118.151007, 35.675531], [118.138747, 35.661346], [118.142084, 35.658541], [118.149776, 35.65692], [118.151935, 35.654352], [118.141585, 35.647796], [118.132376, 35.625863], [118.135606, 35.616334], [118.144976, 35.613746], [118.155879, 35.607915], [118.161376, 35.60161], [118.173475, 35.598621], [118.175242, 35.592789], [118.183005, 35.588833], [118.193124, 35.581488], [118.208846, 35.574998], [118.210506, 35.567669], [118.21809, 35.560649], [118.225586, 35.556328], [118.220535, 35.550711], [118.208989, 35.546407], [118.205705, 35.54245], [118.197086, 35.535938], [118.192999, 35.530029], [118.191179, 35.521929], [118.192517, 35.515562], [118.190036, 35.50956], [118.184254, 35.508447], [118.174635, 35.510399], [118.16002, 35.51631], [118.153666, 35.517296], [118.146635, 35.515453], [118.149223, 35.510016], [118.150847, 35.498174], [118.156861, 35.489579], [118.15795, 35.478464], [118.162036, 35.464554], [118.162161, 35.456339], [118.153506, 35.446114], [118.146492, 35.44049], [118.144619, 35.432674], [118.138355, 35.423487], [118.136873, 35.415212], [118.140157, 35.410353], [118.150936, 35.403356], [118.158538, 35.401657], [118.163375, 35.393892], [118.172601, 35.39212], [118.183487, 35.395537], [118.190197, 35.393764], [118.19432, 35.395189], [118.202636, 35.406627], [118.208507, 35.409787], [118.215467, 35.411011], [118.218304, 35.409385], [118.222445, 35.401036], [118.237275, 35.395719], [118.242325, 35.388593], [118.248607, 35.383586], [118.251623, 35.382051], [118.266417, 35.380955], [118.27393, 35.38207], [118.28744, 35.374504], [118.287636, 35.370501], [118.297594, 35.358858], [118.304982, 35.355896], [118.308658, 35.350741], [118.311139, 35.339699], [118.311567, 35.330867], [118.316921, 35.329861], [118.334035, 35.33019], [118.348508, 35.331964], [118.354915, 35.342112], [118.360108, 35.34149], [118.374867, 35.345567], [118.391481, 35.335694], [118.401832, 35.333025], [118.407614, 35.334341], [118.411843, 35.33019], [118.416519, 35.328947], [118.420338, 35.324284], [118.427334, 35.322199], [118.434383, 35.324339], [118.452479, 35.310677], [118.456869, 35.317444], [118.469771, 35.324741], [118.474268, 35.325125], [118.475464, 35.339443], [118.483655, 35.348017], [118.484958, 35.35416], [118.48155, 35.368216], [118.484012, 35.373297], [118.486475, 35.383696], [118.498717, 35.387351], [118.500663, 35.393307], [118.504178, 35.397218], [118.513547, 35.40237], [118.523827, 35.402114], [118.562195, 35.391078], [118.57094, 35.389817], [118.575401, 35.391078], [118.576258, 35.386327], [118.58279, 35.379895], [118.593604, 35.377647], [118.60192, 35.388758], [118.606114, 35.390749], [118.60358, 35.406352], [118.601403, 35.414518], [118.619052, 35.423103], [118.623817, 35.423469], [118.635667, 35.421058], [118.642252, 35.425149], [118.639308, 35.429222], [118.63258, 35.43092], [118.631437, 35.443594], [118.628903, 35.449346], [118.632883, 35.452066], [118.640521, 35.451409], [118.648016, 35.45329], [118.650979, 35.458621], [118.662043, 35.461542], [118.669075, 35.456357], [118.678265, 35.45685], [118.681852, 35.458803], [118.693577, 35.459114], [118.700787, 35.455389], [118.709139, 35.45769], [118.710834, 35.460848], [118.723897, 35.468771], [118.734355, 35.486075], [118.72909, 35.490601], [118.725039, 35.496568], [118.719721, 35.498685], [118.705801, 35.507662], [118.698842, 35.513574], [118.698734, 35.523717], [118.696557, 35.528606], [118.69952, 35.531944], [118.720274, 35.547556], [118.725111, 35.553191], [118.724022, 35.562983], [118.734837, 35.569747], [118.739691, 35.577185], [118.740583, 35.581488], [118.735818, 35.593445], [118.737335, 35.603232], [118.723719, 35.604908], [118.716527, 35.600553], [118.713083, 35.601154], [118.700126, 35.607113], [118.691239, 35.605637], [118.685618, 35.609974], [118.686706, 35.624424], [118.694559, 35.637613], [118.697289, 35.644444], [118.697075, 35.65009], [118.693488, 35.653806], [118.683619, 35.652312], [118.681709, 35.642841], [118.672947, 35.643533], [118.672554, 35.648761], [118.666398, 35.651129], [118.653085, 35.660453], [118.644055, 35.663895], [118.641253, 35.667355], [118.635417, 35.669576], [118.629635, 35.663604], [118.626958, 35.663567], [118.617714, 35.649763], [118.611771, 35.651748], [118.607917, 35.650364], [118.606239, 35.657011], [118.601956, 35.659215], [118.595621, 35.656155], [118.59248, 35.660071], [118.582914, 35.659634], [118.580969, 35.654899], [118.580487, 35.643114], [118.572599, 35.63734], [118.566603, 35.639016], [118.567317, 35.643952], [118.560928, 35.644007], [118.549882, 35.638688], [118.549703, 35.640291], [118.541173, 35.644827], [118.532678, 35.642167], [118.526557, 35.643624], [118.517973, 35.649908], [118.517848, 35.656738], [118.511888, 35.658159], [118.500234, 35.655736], [118.489866, 35.660544], [118.486404, 35.666863], [118.489437, 35.670924], [118.479515, 35.672381], [118.466041, 35.679026], [118.456958, 35.670523], [118.451354, 35.670596], [118.439237, 35.682467], [118.422569, 35.691624], [118.412504, 35.695192], [118.400708, 35.69532], [118.382737, 35.696649], [118.364266, 35.702564], [118.353773, 35.698305], [118.348187, 35.700416], [118.338639, 35.711501], [118.338283, 35.714886], [118.343119, 35.723584], [118.342994, 35.728843], [118.338639, 35.744726], [118.333928, 35.747673], [118.319651, 35.746145], [118.299878, 35.747618], [118.289724, 35.746218], [118.28064, 35.748673], [118.274965, 35.747891], [118.268451, 35.739978], [118.26117, 35.733301], [118.257351, 35.732136], [118.263294, 35.728115], [118.256281, 35.728952], [118.252533, 35.726787], [118.247964, 35.729207], [118.241022, 35.729698], [118.236132, 35.73421], [118.238167, 35.744417], [118.23499, 35.751529], [118.229369, 35.750674], [118.227852, 35.759478], [118.221267, 35.75655], [118.219107, 35.762825]]]] } }, { "type": "Feature", "properties": { "adcode": 371322, "name": "郯城县", "center": [118.342963, 34.614741], "centroid": [118.322841, 34.625779], "childrenNum": 0, "level": "district", "parent": { "adcode": 371300 }, "subFeatureIndex": 4, "acroutes": [100000, 370000, 371300] }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[118.292401, 34.780984], [118.29224, 34.775774], [118.301038, 34.752924], [118.301877, 34.7411], [118.295595, 34.73935], [118.287547, 34.741266], [118.26979, 34.739645], [118.263205, 34.743089], [118.258279, 34.741266], [118.248625, 34.73469], [118.246947, 34.729532], [118.247019, 34.720598], [118.242575, 34.702357], [118.238006, 34.699077], [118.217751, 34.690379], [118.20335, 34.674011], [118.203742, 34.6685], [118.190893, 34.669827], [118.186842, 34.667596], [118.178151, 34.657328], [118.159145, 34.653216], [118.150579, 34.648828], [118.14635, 34.649399], [118.136784, 34.654341], [118.131912, 34.647703], [118.121794, 34.64195], [118.11685, 34.634204], [118.118153, 34.63201], [118.117778, 34.622769], [118.114834, 34.619505], [118.114727, 34.614395], [118.102841, 34.593437], [118.100004, 34.594858], [118.09622, 34.588677], [118.091438, 34.584303], [118.08239, 34.579874], [118.078999, 34.569779], [118.10045, 34.564722], [118.116476, 34.559738], [118.127219, 34.555401], [118.132073, 34.560551], [118.137195, 34.563246], [118.142299, 34.559775], [118.140728, 34.554016], [118.146385, 34.550896], [118.156165, 34.549142], [118.163571, 34.551469], [118.173136, 34.549807], [118.172405, 34.546964], [118.184683, 34.544195], [118.18131, 34.537567], [118.167586, 34.51971], [118.166337, 34.515093], [118.169335, 34.512397], [118.164981, 34.504898], [118.153613, 34.502681], [118.141603, 34.496863], [118.13284, 34.483414], [118.141281, 34.47994], [118.139943, 34.475339], [118.148634, 34.472845], [118.147367, 34.470923], [118.155737, 34.465065], [118.173547, 34.456915], [118.177776, 34.453256], [118.179275, 34.441999], [118.178865, 34.425195], [118.174992, 34.413436], [118.177116, 34.408702], [118.175849, 34.402044], [118.17178, 34.391317], [118.168871, 34.387969], [118.170424, 34.381347], [118.179293, 34.379424], [118.183362, 34.390356], [118.187681, 34.390245], [118.189608, 34.380644], [118.202886, 34.380903], [118.204385, 34.377352], [118.217698, 34.379146], [118.21627, 34.382642], [118.220267, 34.405928], [118.230939, 34.398697], [118.235472, 34.402081], [118.24079, 34.402044], [118.242396, 34.405724], [118.27741, 34.40467], [118.279891, 34.41216], [118.289188, 34.412289], [118.29067, 34.424585], [118.295916, 34.425177], [118.314012, 34.423013], [118.31469, 34.426656], [118.320026, 34.428098], [118.320936, 34.421349], [118.337551, 34.422255], [118.347384, 34.421035], [118.35222, 34.422847], [118.353202, 34.417448], [118.36962, 34.415044], [118.379971, 34.415525], [118.382255, 34.420369], [118.395175, 34.427062], [118.404973, 34.427765], [118.408239, 34.435511], [118.405365, 34.437045], [118.411344, 34.446399], [118.41386, 34.46403], [118.416251, 34.47388], [118.421391, 34.483229], [118.430903, 34.489067], [118.433758, 34.493852], [118.43954, 34.50802], [118.440932, 34.524752], [118.436738, 34.537659], [118.432741, 34.546447], [118.428012, 34.561178], [118.423872, 34.592921], [118.432402, 34.612772], [118.432509, 34.61956], [118.439183, 34.626292], [118.443449, 34.622567], [118.454335, 34.617752], [118.459974, 34.620113], [118.46365, 34.625259], [118.473822, 34.623415], [118.476499, 34.630885], [118.474911, 34.637192], [118.466434, 34.64313], [118.460848, 34.657549], [118.462562, 34.667375], [118.468451, 34.674306], [118.484262, 34.670896], [118.495469, 34.671578], [118.500805, 34.675173], [118.508158, 34.687061], [118.51626, 34.691245], [118.52272, 34.692277], [118.52454, 34.706521], [118.52322, 34.711791], [118.512013, 34.715365], [118.50259, 34.726659], [118.502037, 34.744894], [118.49397, 34.757509], [118.490776, 34.772589], [118.492935, 34.784004], [118.492561, 34.78844], [118.487207, 34.795435], [118.470592, 34.802852], [118.460152, 34.803772], [118.45744, 34.801288], [118.441093, 34.802907], [118.439986, 34.80403], [118.443752, 34.816047], [118.440218, 34.818384], [118.441664, 34.82775], [118.433687, 34.829755], [118.439665, 34.834575], [118.454406, 34.842026], [118.464418, 34.840297], [118.471806, 34.843663], [118.472644, 34.853799], [118.479926, 34.870737], [118.486654, 34.87743], [118.485886, 34.881752], [118.480354, 34.886789], [118.471021, 34.894033], [118.451997, 34.904383], [118.449748, 34.91043], [118.449159, 34.919638], [118.439058, 34.931969], [118.430689, 34.934928], [118.429707, 34.927614], [118.419749, 34.920925], [118.410969, 34.919013], [118.402617, 34.913132], [118.397424, 34.904769], [118.385539, 34.896883], [118.389054, 34.889676], [118.388037, 34.886753], [118.378079, 34.8828], [118.374313, 34.879196], [118.365676, 34.881531], [118.357128, 34.880428], [118.362321, 34.872227], [118.354719, 34.86739], [118.363427, 34.863712], [118.365926, 34.865827], [118.374724, 34.860254], [118.369102, 34.853136], [118.357717, 34.844105], [118.353541, 34.832515], [118.349097, 34.826149], [118.336016, 34.818697], [118.328949, 34.803607], [118.317153, 34.788919], [118.301609, 34.789618], [118.292401, 34.780984]]]] } }, { "type": "Feature", "properties": { "adcode": 371323, "name": "沂水县", "center": [118.634543, 35.787029], "centroid": [118.602502, 35.909224], "childrenNum": 0, "level": "district", "parent": { "adcode": 371300 }, "subFeatureIndex": 5, "acroutes": [100000, 370000, 371300] }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[118.737335, 35.603232], [118.739691, 35.62497], [118.742725, 35.63049], [118.751433, 35.640437], [118.766602, 35.653515], [118.770082, 35.658741], [118.785591, 35.67411], [118.791408, 35.682959], [118.791212, 35.687965], [118.794085, 35.697504], [118.802348, 35.708953], [118.805864, 35.715796], [118.806381, 35.726095], [118.798886, 35.730135], [118.776935, 35.727478], [118.757216, 35.725931], [118.74351, 35.729334], [118.73564, 35.729225], [118.722148, 35.73099], [118.714314, 35.733392], [118.707086, 35.738067], [118.703303, 35.745217], [118.706408, 35.758496], [118.706533, 35.765153], [118.702179, 35.7723], [118.699109, 35.787483], [118.700626, 35.791374], [118.716741, 35.807227], [118.724629, 35.82044], [118.722113, 35.834924], [118.723344, 35.839031], [118.732838, 35.848097], [118.749774, 35.849478], [118.754378, 35.853548], [118.757233, 35.869097], [118.75602, 35.877379], [118.758126, 35.883989], [118.765157, 35.896283], [118.765211, 35.898353], [118.777274, 35.896791], [118.778167, 35.899061], [118.774954, 35.906686], [118.775186, 35.917233], [118.779487, 35.920156], [118.792997, 35.92041], [118.805739, 35.923877], [118.803972, 35.932607], [118.804115, 35.939721], [118.806488, 35.944965], [118.813876, 35.948739], [118.837219, 35.948866], [118.872215, 35.954419], [118.883547, 35.957303], [118.893041, 35.963272], [118.897431, 35.970547], [118.89727, 35.976043], [118.890703, 35.983715], [118.886242, 35.985855], [118.879817, 35.992312], [118.886027, 35.999874], [118.896039, 36.006402], [118.941261, 36.007453], [118.956858, 36.008432], [118.966869, 36.011134], [118.981878, 36.017407], [118.988035, 36.022283], [118.998992, 36.038398], [119.004489, 36.034229], [119.012555, 36.035316], [119.022834, 36.030114], [119.024119, 36.02629], [119.035612, 36.022773], [119.036593, 36.024839], [119.047943, 36.024821], [119.049442, 36.033649], [119.052066, 36.037854], [119.045481, 36.038633], [119.040305, 36.042929], [119.042572, 36.055505], [119.045855, 36.056683], [119.049639, 36.066631], [119.063541, 36.075037], [119.066967, 36.074747], [119.066931, 36.081631], [119.064058, 36.082192], [119.06272, 36.087192], [119.057652, 36.086757], [119.048836, 36.092716], [119.038539, 36.090452], [119.034862, 36.095777], [119.027938, 36.09719], [119.025047, 36.103329], [119.020318, 36.104307], [119.013876, 36.098838], [119.0039, 36.097479], [119.000563, 36.099508], [118.990123, 36.096103], [118.99039, 36.092607], [118.981896, 36.094726], [118.978237, 36.098041], [118.970296, 36.098711], [118.97001, 36.104669], [118.958518, 36.104162], [118.954609, 36.111514], [118.943241, 36.119571], [118.936335, 36.113433], [118.92884, 36.111768], [118.923058, 36.114647], [118.916205, 36.111695], [118.920791, 36.105719], [118.910637, 36.10657], [118.910369, 36.102478], [118.916169, 36.103039], [118.908263, 36.091303], [118.896521, 36.090796], [118.893344, 36.087934], [118.886491, 36.088568], [118.88087, 36.084384], [118.875873, 36.091539], [118.870537, 36.095632], [118.865879, 36.096085], [118.86049, 36.101319], [118.863434, 36.103673], [118.862025, 36.107186], [118.865986, 36.113687], [118.860204, 36.114737], [118.858295, 36.129964], [118.862292, 36.130651], [118.861971, 36.136607], [118.863934, 36.139304], [118.858277, 36.143232], [118.857724, 36.152264], [118.859865, 36.153784], [118.859847, 36.162344], [118.854583, 36.170179], [118.846641, 36.172115], [118.844553, 36.184725], [118.848747, 36.188633], [118.847016, 36.199251], [118.844286, 36.201964], [118.835827, 36.203157], [118.829384, 36.20115], [118.82155, 36.201114], [118.809058, 36.198744], [118.802116, 36.202868], [118.785733, 36.197496], [118.779095, 36.199775], [118.773794, 36.204206], [118.766388, 36.206648], [118.759625, 36.202922], [118.755217, 36.197388], [118.745509, 36.191744], [118.744706, 36.188144], [118.748275, 36.187529], [118.75113, 36.183115], [118.749131, 36.176331], [118.744973, 36.171391], [118.745134, 36.167392], [118.741797, 36.165547], [118.737888, 36.168243], [118.733516, 36.166813], [118.734962, 36.157241], [118.732981, 36.15192], [118.736479, 36.146544], [118.728305, 36.143829], [118.726074, 36.141024], [118.720382, 36.142526], [118.721292, 36.149784], [118.714689, 36.154508], [118.70871, 36.153458], [118.703749, 36.150436], [118.701233, 36.144499], [118.693577, 36.14392], [118.693256, 36.148807], [118.679871, 36.152065], [118.683387, 36.15858], [118.680799, 36.160046], [118.679122, 36.165927], [118.675481, 36.170215], [118.666005, 36.169003], [118.659456, 36.17197], [118.653138, 36.176711], [118.644304, 36.177036], [118.640789, 36.171029], [118.636452, 36.170215], [118.627119, 36.173237], [118.622086, 36.177181], [118.615465, 36.170595], [118.611968, 36.171283], [118.606257, 36.164208], [118.596352, 36.160208], [118.590053, 36.154906], [118.581897, 36.151449], [118.572171, 36.156444], [118.563998, 36.147106], [118.56332, 36.142852], [118.566657, 36.135793], [118.564997, 36.130072], [118.556877, 36.130941], [118.548311, 36.126234], [118.546384, 36.120404], [118.541726, 36.125003], [118.536908, 36.1235], [118.535837, 36.118521], [118.531732, 36.118051], [118.525843, 36.113035], [118.51551, 36.109884], [118.50996, 36.114592], [118.507783, 36.109522], [118.501894, 36.112021], [118.498753, 36.111079], [118.504803, 36.10581], [118.516385, 36.107168], [118.526718, 36.104669], [118.524398, 36.10188], [118.529448, 36.093875], [118.527913, 36.090488], [118.523273, 36.089365], [118.522934, 36.084783], [118.51121, 36.078008], [118.507854, 36.074964], [118.512048, 36.074294], [118.512155, 36.0702], [118.516581, 36.068551], [118.51344, 36.064094], [118.518651, 36.060488], [118.522185, 36.053512], [118.518312, 36.047043], [118.522613, 36.043599], [118.516831, 36.026108], [118.507462, 36.029788], [118.503339, 36.024241], [118.499467, 36.025673], [118.489188, 36.0258], [118.482674, 36.030368], [118.476071, 36.031401], [118.474036, 36.026308], [118.469861, 36.02299], [118.476446, 36.017407], [118.476588, 36.012802], [118.487064, 36.005821], [118.486332, 35.998931], [118.492668, 35.995431], [118.486743, 35.990589], [118.489313, 35.983498], [118.49936, 35.976206], [118.505035, 35.965486], [118.502179, 35.962492], [118.481139, 35.962438], [118.471003, 35.960859], [118.466381, 35.95509], [118.457993, 35.953167], [118.448231, 35.960932], [118.438113, 35.963635], [118.430653, 35.969712], [118.427441, 35.976134], [118.422979, 35.980033], [118.415662, 35.99048], [118.38702, 35.987578], [118.381809, 35.974864], [118.376705, 35.97519], [118.370138, 35.97247], [118.365087, 35.972869], [118.359055, 35.968406], [118.356914, 35.960732], [118.352809, 35.956705], [118.344778, 35.955906], [118.32695, 35.950191], [118.319241, 35.946344], [118.314119, 35.950826], [118.303572, 35.948939], [118.293489, 35.937525], [118.289617, 35.935692], [118.281372, 35.935964], [118.273288, 35.93228], [118.270575, 35.929249], [118.257583, 35.925728], [118.256798, 35.930792], [118.245912, 35.932135], [118.24063, 35.934567], [118.236882, 35.939249], [118.237756, 35.943513], [118.234312, 35.939793], [118.233581, 35.933841], [118.228958, 35.921535], [118.228013, 35.915128], [118.234277, 35.900386], [118.234919, 35.889128], [118.240148, 35.880593], [118.240915, 35.875545], [118.233295, 35.873565], [118.225425, 35.874328], [118.211594, 35.87104], [118.19564, 35.874655], [118.193641, 35.87262], [118.196086, 35.866627], [118.204956, 35.858961], [118.210649, 35.845826], [118.218554, 35.829909], [118.220892, 35.81726], [118.231171, 35.808881], [118.236043, 35.798283], [118.233937, 35.796828], [118.236222, 35.791447], [118.248107, 35.778992], [118.249446, 35.775919], [118.236686, 35.769645], [118.224836, 35.767735], [118.219107, 35.762825], [118.221267, 35.75655], [118.227852, 35.759478], [118.229369, 35.750674], [118.23499, 35.751529], [118.238167, 35.744417], [118.236132, 35.73421], [118.241022, 35.729698], [118.247964, 35.729207], [118.252533, 35.726787], [118.256281, 35.728952], [118.263294, 35.728115], [118.257351, 35.732136], [118.26117, 35.733301], [118.268451, 35.739978], [118.274965, 35.747891], [118.28064, 35.748673], [118.289724, 35.746218], [118.299878, 35.747618], [118.319651, 35.746145], [118.333928, 35.747673], [118.338639, 35.744726], [118.342994, 35.728843], [118.343119, 35.723584], [118.338283, 35.714886], [118.338639, 35.711501], [118.348187, 35.700416], [118.353773, 35.698305], [118.364266, 35.702564], [118.382737, 35.696649], [118.400708, 35.69532], [118.412504, 35.695192], [118.422569, 35.691624], [118.439237, 35.682467], [118.451354, 35.670596], [118.456958, 35.670523], [118.466041, 35.679026], [118.479515, 35.672381], [118.489437, 35.670924], [118.486404, 35.666863], [118.489866, 35.660544], [118.500234, 35.655736], [118.511888, 35.658159], [118.517848, 35.656738], [118.517973, 35.649908], [118.526557, 35.643624], [118.532678, 35.642167], [118.541173, 35.644827], [118.549703, 35.640291], [118.549882, 35.638688], [118.560928, 35.644007], [118.567317, 35.643952], [118.566603, 35.639016], [118.572599, 35.63734], [118.580487, 35.643114], [118.580969, 35.654899], [118.582914, 35.659634], [118.59248, 35.660071], [118.595621, 35.656155], [118.601956, 35.659215], [118.606239, 35.657011], [118.607917, 35.650364], [118.611771, 35.651748], [118.617714, 35.649763], [118.626958, 35.663567], [118.629635, 35.663604], [118.635417, 35.669576], [118.641253, 35.667355], [118.644055, 35.663895], [118.653085, 35.660453], [118.666398, 35.651129], [118.672554, 35.648761], [118.672947, 35.643533], [118.681709, 35.642841], [118.683619, 35.652312], [118.693488, 35.653806], [118.697075, 35.65009], [118.697289, 35.644444], [118.694559, 35.637613], [118.686706, 35.624424], [118.685618, 35.609974], [118.691239, 35.605637], [118.700126, 35.607113], [118.713083, 35.601154], [118.716527, 35.600553], [118.723719, 35.604908], [118.737335, 35.603232]]]] } }, { "type": "Feature", "properties": { "adcode": 371324, "name": "兰陵县", "center": [118.049968, 34.855573], "centroid": [117.984382, 34.855816], "childrenNum": 0, "level": "district", "parent": { "adcode": 371300 }, "subFeatureIndex": 6, "acroutes": [100000, 370000, 371300] }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[117.74462, 35.022769], [117.743549, 35.018198], [117.738017, 35.013223], [117.728023, 35.008028], [117.726685, 35.001143], [117.727399, 34.990016], [117.72656, 34.979549], [117.719511, 34.968345], [117.724365, 34.959749], [117.720832, 34.953925], [117.71471, 34.947826], [117.716013, 34.940844], [117.711998, 34.93502], [117.704253, 34.933605], [117.698274, 34.926842], [117.698471, 34.920006], [117.704984, 34.913757], [117.704467, 34.907232], [117.714032, 34.900394], [117.715157, 34.896258], [117.728666, 34.877817], [117.742407, 34.874139], [117.747047, 34.869284], [117.752936, 34.857606], [117.76318, 34.848851], [117.795285, 34.8359], [117.802066, 34.834999], [117.803672, 34.830712], [117.800514, 34.813636], [117.79864, 34.810655], [117.777403, 34.801232], [117.776511, 34.796778], [117.78406, 34.794827], [117.785737, 34.790483], [117.783667, 34.787648], [117.784577, 34.780653], [117.79955, 34.768889], [117.815058, 34.763825], [117.830602, 34.760234], [117.832493, 34.757546], [117.83053, 34.750106], [117.831815, 34.746404], [117.830049, 34.740879], [117.825212, 34.733714], [117.82366, 34.728667], [117.826694, 34.721666], [117.825266, 34.713136], [117.831726, 34.707811], [117.825658, 34.684407], [117.819198, 34.681827], [117.813648, 34.668076], [117.805796, 34.646265], [117.811667, 34.645029], [117.820108, 34.646172], [117.825337, 34.649528], [117.826426, 34.6527], [117.83178, 34.653456], [117.831976, 34.64868], [117.836794, 34.647426], [117.847502, 34.652405], [117.849376, 34.647224], [117.863438, 34.645195], [117.866918, 34.648606], [117.877911, 34.650211], [117.877626, 34.646228], [117.881017, 34.645158], [117.903128, 34.644568], [117.909713, 34.670177], [117.91653, 34.669606], [117.924828, 34.666251], [117.939694, 34.66485], [117.94428, 34.668758], [117.951686, 34.678454], [117.963286, 34.678546], [117.977117, 34.673237], [117.987218, 34.672408], [117.991626, 34.670675], [117.990822, 34.661716], [117.997104, 34.657143], [118.007383, 34.656111], [118.007847, 34.647519], [118.018216, 34.647021], [118.020679, 34.660425], [118.028352, 34.65989], [118.028013, 34.656055], [118.037026, 34.656775], [118.045181, 34.654986], [118.053926, 34.65093], [118.057423, 34.655023], [118.077768, 34.653695], [118.077893, 34.650395], [118.083996, 34.655908], [118.099932, 34.651446], [118.102681, 34.647721], [118.094561, 34.636602], [118.101646, 34.632194], [118.100539, 34.626569], [118.113013, 34.62146], [118.114834, 34.619505], [118.117778, 34.622769], [118.118153, 34.63201], [118.11685, 34.634204], [118.121794, 34.64195], [118.131912, 34.647703], [118.136784, 34.654341], [118.14635, 34.649399], [118.150579, 34.648828], [118.159145, 34.653216], [118.178151, 34.657328], [118.186842, 34.667596], [118.190893, 34.669827], [118.203742, 34.6685], [118.20335, 34.674011], [118.217751, 34.690379], [118.238006, 34.699077], [118.242575, 34.702357], [118.247019, 34.720598], [118.246947, 34.729532], [118.248625, 34.73469], [118.258279, 34.741266], [118.263205, 34.743089], [118.26979, 34.739645], [118.287547, 34.741266], [118.295595, 34.73935], [118.301877, 34.7411], [118.301038, 34.752924], [118.29224, 34.775774], [118.292401, 34.780984], [118.2886, 34.787096], [118.284834, 34.785771], [118.286458, 34.796208], [118.280141, 34.809385], [118.265578, 34.802686], [118.265775, 34.789342], [118.259279, 34.779438], [118.253104, 34.777487], [118.243824, 34.770675], [118.235508, 34.770767], [118.228423, 34.764322], [118.226299, 34.76458], [118.221392, 34.757491], [118.21213, 34.75854], [118.213325, 34.762426], [118.206365, 34.767011], [118.209542, 34.769183], [118.198817, 34.769975], [118.190572, 34.772147], [118.192017, 34.783267], [118.186164, 34.786378], [118.186414, 34.794827], [118.188769, 34.797607], [118.190429, 34.809661], [118.181256, 34.808925], [118.185254, 34.815605], [118.18968, 34.814741], [118.197014, 34.817979], [118.198192, 34.822708], [118.195694, 34.837243], [118.192696, 34.837666], [118.19432, 34.844638], [118.198103, 34.844068], [118.199638, 34.847876], [118.203831, 34.847048], [118.209542, 34.856355], [118.215306, 34.853063], [118.2147, 34.850727], [118.220535, 34.848483], [118.220535, 34.854829], [118.22257, 34.895155], [118.221874, 34.897673], [118.212023, 34.905044], [118.210345, 34.910651], [118.202475, 34.910724], [118.200583, 34.914658], [118.186664, 34.916091], [118.179097, 34.920484], [118.171673, 34.9135], [118.159805, 34.909291], [118.159538, 34.913003], [118.15563, 34.916643], [118.152185, 34.913224], [118.147028, 34.913647], [118.136195, 34.907563], [118.13268, 34.907894], [118.131627, 34.913003], [118.13566, 34.919473], [118.135642, 34.926475], [118.132787, 34.924159], [118.118367, 34.928662], [118.109676, 34.926328], [118.107838, 34.922616], [118.099219, 34.921035], [118.101806, 34.935699], [118.101806, 34.940697], [118.108213, 34.941634], [118.106767, 34.948451], [118.110943, 34.956516], [118.105964, 34.961622], [118.108159, 34.978943], [118.115994, 34.981165], [118.127594, 34.991228], [118.124595, 34.997287], [118.131395, 35.021906], [118.137587, 35.025063], [118.136677, 35.03134], [118.129485, 35.032918], [118.133037, 35.040241], [118.13516, 35.048829], [118.133626, 35.058058], [118.126666, 35.063654], [118.125773, 35.070277], [118.120812, 35.071212], [118.112389, 35.092526], [118.107927, 35.092269], [118.095453, 35.087739], [118.086548, 35.092581], [118.079677, 35.09414], [118.067649, 35.089133], [118.040381, 35.086492], [118.029477, 35.081154], [118.0215, 35.075376], [118.004278, 35.07334], [118.001905, 35.067818], [117.995944, 35.068222], [117.990608, 35.072606], [117.97585, 35.069414], [117.954595, 35.054352], [117.923401, 35.043948], [117.911765, 35.041746], [117.901557, 35.044719], [117.887209, 35.043948], [117.87825, 35.042223], [117.865669, 35.044296], [117.85257, 35.048664], [117.837936, 35.0496], [117.82705, 35.049086], [117.822339, 35.045618], [117.821375, 35.035323], [117.817824, 35.02956], [117.813309, 35.030422], [117.807884, 35.035286], [117.805118, 35.041691], [117.800282, 35.041893], [117.791519, 35.039507], [117.772406, 35.040626], [117.765036, 35.036809], [117.765821, 35.031248], [117.759611, 35.022842], [117.753864, 35.020768], [117.74462, 35.022769]]]] } }, { "type": "Feature", "properties": { "adcode": 371325, "name": "费县", "center": [117.968869, 35.269174], "centroid": [117.943937, 35.245048], "childrenNum": 0, "level": "district", "parent": { "adcode": 371300 }, "subFeatureIndex": 7, "acroutes": [100000, 370000, 371300] }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[117.609848, 35.128134], [117.611472, 35.125036], [117.622982, 35.113045], [117.64015, 35.099898], [117.650697, 35.092746], [117.656925, 35.077486], [117.676467, 35.065544], [117.693188, 35.060205], [117.707376, 35.052334], [117.703325, 35.036736], [117.704395, 35.031212], [117.71248, 35.030037], [117.721992, 35.032294], [117.736215, 35.031524], [117.741247, 35.028972], [117.74462, 35.022769], [117.753864, 35.020768], [117.759611, 35.022842], [117.765821, 35.031248], [117.765036, 35.036809], [117.772406, 35.040626], [117.791519, 35.039507], [117.800282, 35.041893], [117.805118, 35.041691], [117.807884, 35.035286], [117.813309, 35.030422], [117.817824, 35.02956], [117.821375, 35.035323], [117.822339, 35.045618], [117.82705, 35.049086], [117.837936, 35.0496], [117.85257, 35.048664], [117.865669, 35.044296], [117.87825, 35.042223], [117.887209, 35.043948], [117.901557, 35.044719], [117.911765, 35.041746], [117.923401, 35.043948], [117.954595, 35.054352], [117.97585, 35.069414], [117.990608, 35.072606], [117.995944, 35.068222], [118.001905, 35.067818], [118.004278, 35.07334], [118.0215, 35.075376], [118.029477, 35.081154], [118.040381, 35.086492], [118.067649, 35.089133], [118.079677, 35.09414], [118.086548, 35.092581], [118.095453, 35.087739], [118.107927, 35.092269], [118.112389, 35.092526], [118.115101, 35.103987], [118.119581, 35.11112], [118.123239, 35.120526], [118.126808, 35.138289], [118.136802, 35.148626], [118.139765, 35.159218], [118.147956, 35.15953], [118.153595, 35.170121], [118.158431, 35.183], [118.164856, 35.183934], [118.168871, 35.187213], [118.173315, 35.19531], [118.178615, 35.199834], [118.186396, 35.203185], [118.178205, 35.206372], [118.166855, 35.208973], [118.149633, 35.211152], [118.139193, 35.218513], [118.128093, 35.220473], [118.116333, 35.229115], [118.11553, 35.23252], [118.129253, 35.241271], [118.129003, 35.25262], [118.131413, 35.255787], [118.138355, 35.258239], [118.134411, 35.264572], [118.140246, 35.272148], [118.138694, 35.274106], [118.142299, 35.283218], [118.14196, 35.288963], [118.145868, 35.29586], [118.145208, 35.300324], [118.135535, 35.310018], [118.135999, 35.313512], [118.132269, 35.315725], [118.133358, 35.322894], [118.139211, 35.321943], [118.142656, 35.324704], [118.149812, 35.322985], [118.151811, 35.31684], [118.159538, 35.326222], [118.163839, 35.325235], [118.172244, 35.326917], [118.17344, 35.330282], [118.183237, 35.330849], [118.188038, 35.328051], [118.189626, 35.317609], [118.193231, 35.31706], [118.197996, 35.322016], [118.202118, 35.320206], [118.206544, 35.314499], [118.212308, 35.316804], [118.210506, 35.321669], [118.217751, 35.333061], [118.221909, 35.333756], [118.219304, 35.336499], [118.212968, 35.336645], [118.215074, 35.339205], [118.211077, 35.34341], [118.215431, 35.346043], [118.215681, 35.354854], [118.220482, 35.356737], [118.217947, 35.352697], [118.225889, 35.349571], [118.226496, 35.346994], [118.233188, 35.347085], [118.237132, 35.355348], [118.242628, 35.361216], [118.244181, 35.369203], [118.24195, 35.373955], [118.236614, 35.376331], [118.230279, 35.381795], [118.233848, 35.386748], [118.238024, 35.387204], [118.248607, 35.383586], [118.242325, 35.388593], [118.237275, 35.395719], [118.222445, 35.401036], [118.218304, 35.409385], [118.215467, 35.411011], [118.208507, 35.409787], [118.202636, 35.406627], [118.19432, 35.395189], [118.190197, 35.393764], [118.183487, 35.395537], [118.172601, 35.39212], [118.163375, 35.393892], [118.158538, 35.401657], [118.150936, 35.403356], [118.140157, 35.410353], [118.136873, 35.415212], [118.138355, 35.423487], [118.144619, 35.432674], [118.146492, 35.44049], [118.142816, 35.446059], [118.141656, 35.453764], [118.136481, 35.460447], [118.126434, 35.46711], [118.101949, 35.472112], [118.091866, 35.47547], [118.079445, 35.477971], [118.069095, 35.478683], [118.05298, 35.47443], [118.043843, 35.473773], [118.034242, 35.485253], [118.029834, 35.498119], [118.021999, 35.502115], [118.019983, 35.513483], [118.014861, 35.518591], [118.017324, 35.525322], [118.016485, 35.528296], [118.009489, 35.534096], [117.992429, 35.53696], [117.98256, 35.537051], [117.973173, 35.538382], [117.947635, 35.547848], [117.941853, 35.547574], [117.940586, 35.535665], [117.945494, 35.527457], [117.952953, 35.518737], [117.946672, 35.512132], [117.945119, 35.503593], [117.946654, 35.496349], [117.946529, 35.488776], [117.942264, 35.480234], [117.939908, 35.469885], [117.936214, 35.465996], [117.916691, 35.450752], [117.91239, 35.441823], [117.914442, 35.42619], [117.906929, 35.406279], [117.906036, 35.401931], [117.900683, 35.389817], [117.89101, 35.379804], [117.878714, 35.371141], [117.873039, 35.350248], [117.877679, 35.33478], [117.886549, 35.321742], [117.884871, 35.314481], [117.87784, 35.308903], [117.872575, 35.299263], [117.866258, 35.297324], [117.850339, 35.300269], [117.834956, 35.297744], [117.819127, 35.296958], [117.812292, 35.290793], [117.805064, 35.286091], [117.793036, 35.282468], [117.785577, 35.276375], [117.775422, 35.273978], [117.771353, 35.271599], [117.744567, 35.263931], [117.736197, 35.263199], [117.714336, 35.269183], [117.70684, 35.270025], [117.698845, 35.272569], [117.70063, 35.25866], [117.698007, 35.254103], [117.693848, 35.231221], [117.699452, 35.220161], [117.694866, 35.220125], [117.694509, 35.214796], [117.686978, 35.214027], [117.678929, 35.190877], [117.677466, 35.184209], [117.672523, 35.170469], [117.658728, 35.153977], [117.63626, 35.136108], [117.628479, 35.134238], [117.617557, 35.129948], [117.609848, 35.128134]]]] } }, { "type": "Feature", "properties": { "adcode": 371326, "name": "平邑县", "center": [117.631884, 35.511519], "centroid": [117.675793, 35.429117], "childrenNum": 0, "level": "district", "parent": { "adcode": 371300 }, "subFeatureIndex": 8, "acroutes": [100000, 370000, 371300] }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[117.941853, 35.547574], [117.93832, 35.550419], [117.921438, 35.551623], [117.917047, 35.550456], [117.912265, 35.552079], [117.903021, 35.557969], [117.899148, 35.558552], [117.88662, 35.563658], [117.877322, 35.572792], [117.862546, 35.579282], [117.850661, 35.597728], [117.838204, 35.608243], [117.820751, 35.614858], [117.813256, 35.620051], [117.808045, 35.634025], [117.802566, 35.641548], [117.795392, 35.642841], [117.784167, 35.642604], [117.776047, 35.650946], [117.764411, 35.658068], [117.76318, 35.670232], [117.760789, 35.677606], [117.761056, 35.68711], [117.75233, 35.691898], [117.750652, 35.69643], [117.750277, 35.709808], [117.745013, 35.711391], [117.732646, 35.712374], [117.718083, 35.720927], [117.707447, 35.726022], [117.702361, 35.725822], [117.697293, 35.721673], [117.679161, 35.713302], [117.663903, 35.709681], [117.650965, 35.7111], [117.6346, 35.709335], [117.625838, 35.703857], [117.609634, 35.68214], [117.605351, 35.67482], [117.59898, 35.649162], [117.596909, 35.630454], [117.595232, 35.625936], [117.588914, 35.619869], [117.585542, 35.605382], [117.585542, 35.593992], [117.592787, 35.589708], [117.590253, 35.579829], [117.590378, 35.573539], [117.593483, 35.567468], [117.589289, 35.558352], [117.582436, 35.554139], [117.556114, 35.549854], [117.547209, 35.551185], [117.546745, 35.548833], [117.528649, 35.54721], [117.515068, 35.550985], [117.502772, 35.551878], [117.499471, 35.550857], [117.496258, 35.543033], [117.497418, 35.538893], [117.502826, 35.53758], [117.504236, 35.531689], [117.516407, 35.527311], [117.520011, 35.519923], [117.513765, 35.514577], [117.501666, 35.512935], [117.498382, 35.503119], [117.494313, 35.502918], [117.481768, 35.507881], [117.472416, 35.514377], [117.467455, 35.51226], [117.463779, 35.505655], [117.46269, 35.4979], [117.452304, 35.49029], [117.448485, 35.484213], [117.447718, 35.477624], [117.442132, 35.469246], [117.432959, 35.465631], [117.428765, 35.46209], [117.428533, 35.458621], [117.442774, 35.448835], [117.449877, 35.445986], [117.453803, 35.442407], [117.451947, 35.43439], [117.455802, 35.424948], [117.467402, 35.41819], [117.473023, 35.407376], [117.474754, 35.400963], [117.465599, 35.395281], [117.463351, 35.390384], [117.466759, 35.382801], [117.46385, 35.375618], [117.453089, 35.367229], [117.44463, 35.366078], [117.439669, 35.35968], [117.439027, 35.34895], [117.44322, 35.343319], [117.44695, 35.3303], [117.45391, 35.325052], [117.474219, 35.317682], [117.478877, 35.314371], [117.467794, 35.297507], [117.463136, 35.287463], [117.456962, 35.287865], [117.441525, 35.283108], [117.428515, 35.27568], [117.419218, 35.273996], [117.419539, 35.267719], [117.426481, 35.261772], [117.439455, 35.258916], [117.441971, 35.253462], [117.449788, 35.246781], [117.45043, 35.241363], [117.446807, 35.235468], [117.44836, 35.231843], [117.459781, 35.228126], [117.469846, 35.227778], [117.480608, 35.22278], [117.487621, 35.21584], [117.490066, 35.210511], [117.494813, 35.205914], [117.507144, 35.198973], [117.515746, 35.197819], [117.526811, 35.200603], [117.527328, 35.189595], [117.529006, 35.182707], [117.533289, 35.179886], [117.538179, 35.171257], [117.548422, 35.161747], [117.556042, 35.161307], [117.565304, 35.167134], [117.570355, 35.16838], [117.581241, 35.166749], [117.583757, 35.164312], [117.58622, 35.152988], [117.591056, 35.152529], [117.600354, 35.135503], [117.604351, 35.134018], [117.609848, 35.128134], [117.617557, 35.129948], [117.628479, 35.134238], [117.63626, 35.136108], [117.658728, 35.153977], [117.672523, 35.170469], [117.677466, 35.184209], [117.678929, 35.190877], [117.686978, 35.214027], [117.694509, 35.214796], [117.694866, 35.220125], [117.699452, 35.220161], [117.693848, 35.231221], [117.698007, 35.254103], [117.70063, 35.25866], [117.698845, 35.272569], [117.70684, 35.270025], [117.714336, 35.269183], [117.736197, 35.263199], [117.744567, 35.263931], [117.771353, 35.271599], [117.775422, 35.273978], [117.785577, 35.276375], [117.793036, 35.282468], [117.805064, 35.286091], [117.812292, 35.290793], [117.819127, 35.296958], [117.834956, 35.297744], [117.850339, 35.300269], [117.866258, 35.297324], [117.872575, 35.299263], [117.87784, 35.308903], [117.884871, 35.314481], [117.886549, 35.321742], [117.877679, 35.33478], [117.873039, 35.350248], [117.878714, 35.371141], [117.89101, 35.379804], [117.900683, 35.389817], [117.906036, 35.401931], [117.906929, 35.406279], [117.914442, 35.42619], [117.91239, 35.441823], [117.916691, 35.450752], [117.936214, 35.465996], [117.939908, 35.469885], [117.942264, 35.480234], [117.946529, 35.488776], [117.946654, 35.496349], [117.945119, 35.503593], [117.946672, 35.512132], [117.952953, 35.518737], [117.945494, 35.527457], [117.940586, 35.535665], [117.941853, 35.547574]]]] } }, { "type": "Feature", "properties": { "adcode": 371327, "name": "莒南县", "center": [118.838322, 35.175911], "centroid": [118.883939, 35.208098], "childrenNum": 0, "level": "district", "parent": { "adcode": 371300 }, "subFeatureIndex": 9, "acroutes": [100000, 370000, 371300] }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[118.862471, 35.021502], [118.865326, 35.029835], [118.871947, 35.030606], [118.885778, 35.034258], [118.90382, 35.041342], [118.911137, 35.047765], [118.926538, 35.050774], [118.931642, 35.049233], [118.936745, 35.043361], [118.945187, 35.04081], [118.96562, 35.046462], [118.985161, 35.049012], [118.992121, 35.048187], [118.999902, 35.053049], [119.011752, 35.053526], [119.027206, 35.055324], [119.037361, 35.051324], [119.061399, 35.0516], [119.067842, 35.053214], [119.073606, 35.056664], [119.105425, 35.056077], [119.114616, 35.054957], [119.12038, 35.058003], [119.120487, 35.070093], [119.129446, 35.076183], [119.138083, 35.096304], [119.159034, 35.10098], [119.171402, 35.107159], [119.18566, 35.108241], [119.189747, 35.109892], [119.203239, 35.110882], [119.197706, 35.120856], [119.196653, 35.129893], [119.189979, 35.138124], [119.184947, 35.139517], [119.174221, 35.13904], [119.164227, 35.143164], [119.163407, 35.154142], [119.165441, 35.158119], [119.173133, 35.16171], [119.164888, 35.166511], [119.161907, 35.170469], [119.157321, 35.182432], [119.149183, 35.189283], [119.139921, 35.187488], [119.135388, 35.191646], [119.136316, 35.200969], [119.139029, 35.202343], [119.161319, 35.204138], [119.170206, 35.212324], [119.172972, 35.219484], [119.174578, 35.230342], [119.177951, 35.232832], [119.182145, 35.241857], [119.181984, 35.252327], [119.183751, 35.256537], [119.187499, 35.258203], [119.185179, 35.264681], [119.179557, 35.287591], [119.177398, 35.28975], [119.164085, 35.289567], [119.155965, 35.293903], [119.159248, 35.298622], [119.157642, 35.301714], [119.148255, 35.31064], [119.143223, 35.314042], [119.141278, 35.320827], [119.148184, 35.326753], [119.146489, 35.334871], [119.133729, 35.335585], [119.105675, 35.330648], [119.096163, 35.326862], [119.093772, 35.327685], [119.092219, 35.335127], [119.087222, 35.340558], [119.085563, 35.354251], [119.078424, 35.357505], [119.078531, 35.363099], [119.075533, 35.366096], [119.065772, 35.364561], [119.048889, 35.371488], [119.044571, 35.377007], [119.031561, 35.382636], [119.024333, 35.386876], [119.01384, 35.389342], [118.999652, 35.388959], [118.98443, 35.382216], [118.982859, 35.378561], [118.988481, 35.366992], [118.989659, 35.360667], [118.986875, 35.353118], [118.980646, 35.34884], [118.973026, 35.340174], [118.961819, 35.334158], [118.947203, 35.336956], [118.9416, 35.335731], [118.935336, 35.331178], [118.930446, 35.331269], [118.923254, 35.339187], [118.921969, 35.348401], [118.904837, 35.355513], [118.889543, 35.357267], [118.877212, 35.362514], [118.871037, 35.367211], [118.874106, 35.377409], [118.874142, 35.388484], [118.871858, 35.392979], [118.865754, 35.3917], [118.859687, 35.381704], [118.841288, 35.370757], [118.833703, 35.372694], [118.823585, 35.372183], [118.816767, 35.373297], [118.808772, 35.372438], [118.797547, 35.369423], [118.784127, 35.371049], [118.776418, 35.376258], [118.773616, 35.375966], [118.773098, 35.370976], [118.768958, 35.368015], [118.760803, 35.366809], [118.748257, 35.363336], [118.740976, 35.359699], [118.735087, 35.361545], [118.723897, 35.368472], [118.712512, 35.363556], [118.709585, 35.369825], [118.703089, 35.372658], [118.696896, 35.379804], [118.692506, 35.379511], [118.682923, 35.368655], [118.677855, 35.367979], [118.672537, 35.370958], [118.652299, 35.373553], [118.64575, 35.372987], [118.63208, 35.368436], [118.625191, 35.371324], [118.625049, 35.386638], [118.622889, 35.388538], [118.606114, 35.390749], [118.60192, 35.388758], [118.593604, 35.377647], [118.59148, 35.372292], [118.586037, 35.366261], [118.585645, 35.357578], [118.581344, 35.350997], [118.574241, 35.347286], [118.573099, 35.340558], [118.576561, 35.333975], [118.572671, 35.324576], [118.587126, 35.311683], [118.584735, 35.30486], [118.574009, 35.297854], [118.567799, 35.28814], [118.567692, 35.282212], [118.570404, 35.277985], [118.582807, 35.275368], [118.587697, 35.270647], [118.591802, 35.255], [118.60888, 35.238617], [118.623567, 35.239624], [118.631812, 35.237701], [118.639165, 35.240942], [118.64823, 35.239953], [118.660401, 35.237189], [118.657332, 35.22809], [118.656672, 35.212379], [118.660062, 35.200896], [118.668379, 35.190034], [118.672554, 35.181993], [118.67168, 35.179025], [118.660294, 35.170524], [118.654227, 35.167812], [118.648284, 35.160171], [118.646803, 35.156011], [118.647035, 35.142999], [118.639968, 35.130278], [118.637701, 35.119939], [118.634275, 35.113265], [118.622675, 35.101677], [118.614662, 35.098926], [118.626387, 35.094671], [118.633918, 35.09546], [118.639254, 35.086492], [118.658331, 35.078531], [118.670877, 35.069249], [118.675214, 35.063269], [118.680871, 35.058627], [118.715688, 35.036607], [118.731749, 35.024108], [118.747311, 35.019428], [118.773777, 35.01739], [118.787661, 35.012452], [118.790998, 35.012874], [118.806952, 35.020089], [118.815857, 35.020694], [118.827207, 35.014839], [118.833293, 35.013168], [118.837772, 35.014967], [118.844518, 35.021337], [118.851781, 35.023099], [118.862471, 35.021502]]]] } }, { "type": "Feature", "properties": { "adcode": 371328, "name": "蒙阴县", "center": [117.943271, 35.712435], "centroid": [118.030018, 35.741507], "childrenNum": 0, "level": "district", "parent": { "adcode": 371300 }, "subFeatureIndex": 10, "acroutes": [100000, 370000, 371300] }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[118.237756, 35.943513], [118.236364, 35.947741], [118.225657, 35.948249], [118.218019, 35.953403], [118.209863, 35.955743], [118.207044, 35.964397], [118.198478, 35.967245], [118.193784, 35.974011], [118.197746, 35.978038], [118.206133, 35.978637], [118.20658, 35.981775], [118.201386, 35.99068], [118.202439, 35.994379], [118.197603, 36.004951], [118.194444, 36.003627], [118.190857, 36.009992], [118.178383, 36.01699], [118.169121, 36.017824], [118.171013, 36.022102], [118.166997, 36.019782], [118.150204, 36.021468], [118.146796, 36.020634], [118.135553, 36.023661], [118.132698, 36.030423], [118.118028, 36.031021], [118.109373, 36.030042], [118.101806, 36.024604], [118.096131, 36.024223], [118.093276, 36.014633], [118.090385, 36.016972], [118.089189, 36.012947], [118.084353, 36.012149], [118.07841, 36.017661], [118.074377, 36.012494], [118.078196, 36.012802], [118.075876, 36.009049], [118.066793, 36.009157], [118.060439, 36.000382], [118.058958, 35.992965], [118.047412, 35.989864], [118.042237, 35.986363], [118.032725, 35.974265], [118.032011, 35.963526], [118.022999, 35.958973], [118.021053, 35.949012], [118.01909, 35.947923], [118.008472, 35.948903], [117.988485, 35.947705], [117.997408, 35.934567], [117.999228, 35.925383], [117.996587, 35.918286], [117.98827, 35.908683], [117.981382, 35.906196], [117.979169, 35.898915], [117.979348, 35.889673], [117.968122, 35.88408], [117.960038, 35.870078], [117.957183, 35.869642], [117.943602, 35.874164], [117.937606, 35.874836], [117.921562, 35.881901], [117.906286, 35.884643], [117.899362, 35.883971], [117.891403, 35.885206], [117.883372, 35.882627], [117.866883, 35.869842], [117.859459, 35.859361], [117.855425, 35.850223], [117.842166, 35.845063], [117.82739, 35.827764], [117.828442, 35.821785], [117.84097, 35.812043], [117.844825, 35.805591], [117.846128, 35.796392], [117.839311, 35.789574], [117.831155, 35.786665], [117.828585, 35.782792], [117.828478, 35.773846], [117.835028, 35.756368], [117.837455, 35.746472], [117.837383, 35.741433], [117.832601, 35.738267], [117.823071, 35.739486], [117.811489, 35.732937], [117.803083, 35.733009], [117.792144, 35.734702], [117.781758, 35.734083], [117.774441, 35.731154], [117.769033, 35.726605], [117.760342, 35.714722], [117.75415, 35.709626], [117.750277, 35.709808], [117.750652, 35.69643], [117.75233, 35.691898], [117.761056, 35.68711], [117.760789, 35.677606], [117.76318, 35.670232], [117.764411, 35.658068], [117.776047, 35.650946], [117.784167, 35.642604], [117.795392, 35.642841], [117.802566, 35.641548], [117.808045, 35.634025], [117.813256, 35.620051], [117.820751, 35.614858], [117.838204, 35.608243], [117.850661, 35.597728], [117.862546, 35.579282], [117.877322, 35.572792], [117.88662, 35.563658], [117.899148, 35.558552], [117.903021, 35.557969], [117.912265, 35.552079], [117.917047, 35.550456], [117.921438, 35.551623], [117.93832, 35.550419], [117.941853, 35.547574], [117.947635, 35.547848], [117.973173, 35.538382], [117.98256, 35.537051], [117.992429, 35.53696], [118.009489, 35.534096], [118.016485, 35.528296], [118.017324, 35.525322], [118.014861, 35.518591], [118.019983, 35.513483], [118.021999, 35.502115], [118.029834, 35.498119], [118.034242, 35.485253], [118.043843, 35.473773], [118.05298, 35.47443], [118.069095, 35.478683], [118.079445, 35.477971], [118.091866, 35.47547], [118.101949, 35.472112], [118.126434, 35.46711], [118.136481, 35.460447], [118.141656, 35.453764], [118.142816, 35.446059], [118.146492, 35.44049], [118.153506, 35.446114], [118.162161, 35.456339], [118.162036, 35.464554], [118.15795, 35.478464], [118.156861, 35.489579], [118.150847, 35.498174], [118.149223, 35.510016], [118.146635, 35.515453], [118.153666, 35.517296], [118.16002, 35.51631], [118.174635, 35.510399], [118.184254, 35.508447], [118.190036, 35.50956], [118.192517, 35.515562], [118.191179, 35.521929], [118.192999, 35.530029], [118.197086, 35.535938], [118.205705, 35.54245], [118.208989, 35.546407], [118.220535, 35.550711], [118.225586, 35.556328], [118.21809, 35.560649], [118.210506, 35.567669], [118.208846, 35.574998], [118.193124, 35.581488], [118.183005, 35.588833], [118.175242, 35.592789], [118.173475, 35.598621], [118.161376, 35.60161], [118.155879, 35.607915], [118.144976, 35.613746], [118.135606, 35.616334], [118.132376, 35.625863], [118.141585, 35.647796], [118.151935, 35.654352], [118.149776, 35.65692], [118.142084, 35.658541], [118.138747, 35.661346], [118.151007, 35.675531], [118.159984, 35.683378], [118.160609, 35.690041], [118.152792, 35.704075], [118.147313, 35.709007], [118.145904, 35.714467], [118.147188, 35.721219], [118.152667, 35.726277], [118.155326, 35.736594], [118.166284, 35.745399], [118.182309, 35.752493], [118.193856, 35.765098], [118.2137, 35.770881], [118.217394, 35.768735], [118.216502, 35.763407], [118.219107, 35.762825], [118.224836, 35.767735], [118.236686, 35.769645], [118.249446, 35.775919], [118.248107, 35.778992], [118.236222, 35.791447], [118.233937, 35.796828], [118.236043, 35.798283], [118.231171, 35.808881], [118.220892, 35.81726], [118.218554, 35.829909], [118.210649, 35.845826], [118.204956, 35.858961], [118.196086, 35.866627], [118.193641, 35.87262], [118.19564, 35.874655], [118.211594, 35.87104], [118.225425, 35.874328], [118.233295, 35.873565], [118.240915, 35.875545], [118.240148, 35.880593], [118.234919, 35.889128], [118.234277, 35.900386], [118.228013, 35.915128], [118.228958, 35.921535], [118.233581, 35.933841], [118.234312, 35.939793], [118.237756, 35.943513]]]] } }, { "type": "Feature", "properties": { "adcode": 371329, "name": "临沭县", "center": [118.648379, 34.917062], "centroid": [118.658552, 34.880317], "childrenNum": 0, "level": "district", "parent": { "adcode": 371300 }, "subFeatureIndex": 11, "acroutes": [100000, 370000, 371300] }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[118.862471, 35.021502], [118.851781, 35.023099], [118.844518, 35.021337], [118.837772, 35.014967], [118.833293, 35.013168], [118.827207, 35.014839], [118.815857, 35.020694], [118.806952, 35.020089], [118.790998, 35.012874], [118.787661, 35.012452], [118.773777, 35.01739], [118.747311, 35.019428], [118.731749, 35.024108], [118.715688, 35.036607], [118.680871, 35.058627], [118.675214, 35.063269], [118.670877, 35.069249], [118.658331, 35.078531], [118.639254, 35.086492], [118.633918, 35.09546], [118.626387, 35.094671], [118.614662, 35.098926], [118.611075, 35.092067], [118.603223, 35.083099], [118.599672, 35.08165], [118.598815, 35.075688], [118.60035, 35.069708], [118.590499, 35.061563], [118.575366, 35.061434], [118.570583, 35.057031], [118.561928, 35.05182], [118.561785, 35.044168], [118.549578, 35.032845], [118.541351, 35.02945], [118.53357, 35.022089], [118.532428, 35.016491], [118.536765, 35.008946], [118.553201, 35.000959], [118.553576, 34.992366], [118.55122, 34.985572], [118.554861, 34.974608], [118.553344, 34.967721], [118.546937, 34.950931], [118.547008, 34.94022], [118.540191, 34.934413], [118.542297, 34.92449], [118.548811, 34.912103], [118.548472, 34.900265], [118.545724, 34.886183], [118.548811, 34.881402], [118.561517, 34.867592], [118.561178, 34.858875], [118.549846, 34.849292], [118.545438, 34.829755], [118.533017, 34.829847], [118.528895, 34.838016], [118.528556, 34.844785], [118.532, 34.859721], [118.529252, 34.865625], [118.523059, 34.867887], [118.505909, 34.869284], [118.497664, 34.872668], [118.492507, 34.879711], [118.480354, 34.886789], [118.485886, 34.881752], [118.486654, 34.87743], [118.479926, 34.870737], [118.472644, 34.853799], [118.471806, 34.843663], [118.464418, 34.840297], [118.454406, 34.842026], [118.439665, 34.834575], [118.433687, 34.829755], [118.441664, 34.82775], [118.440218, 34.818384], [118.443752, 34.816047], [118.439986, 34.80403], [118.441093, 34.802907], [118.45744, 34.801288], [118.460152, 34.803772], [118.470592, 34.802852], [118.487207, 34.795435], [118.492561, 34.78844], [118.492935, 34.784004], [118.490776, 34.772589], [118.49397, 34.757509], [118.502037, 34.744894], [118.50259, 34.726659], [118.512013, 34.715365], [118.52322, 34.711791], [118.525236, 34.712583], [118.539317, 34.711478], [118.546098, 34.706208], [118.558912, 34.706835], [118.570458, 34.712528], [118.583289, 34.714021], [118.601331, 34.714168], [118.604936, 34.696497], [118.607417, 34.694378], [118.622265, 34.691116], [118.633686, 34.687024], [118.643234, 34.689531], [118.65055, 34.695096], [118.659224, 34.695889], [118.664328, 34.693456], [118.677444, 34.680647], [118.681353, 34.678343], [118.690293, 34.678583], [118.704053, 34.688757], [118.720096, 34.694212], [118.739387, 34.693788], [118.744759, 34.695281], [118.758715, 34.703444], [118.766246, 34.705213], [118.76737, 34.710501], [118.783413, 34.722053], [118.779202, 34.728648], [118.76853, 34.738079], [118.759214, 34.740861], [118.752361, 34.737692], [118.740101, 34.736919], [118.734623, 34.739792], [118.730357, 34.745447], [118.719257, 34.745539], [118.716491, 34.747749], [118.718187, 34.754526], [118.715581, 34.757343], [118.716455, 34.763825], [118.727199, 34.76876], [118.733516, 34.768833], [118.738531, 34.766845], [118.741386, 34.776695], [118.740208, 34.781224], [118.728412, 34.786857], [118.737567, 34.792103], [118.756537, 34.789544], [118.766353, 34.794109], [118.773562, 34.795306], [118.777167, 34.801969], [118.779059, 34.809625], [118.776632, 34.81877], [118.782414, 34.825376], [118.781968, 34.827492], [118.768262, 34.838807], [118.766495, 34.842247], [118.76903, 34.846128], [118.781254, 34.844326], [118.788749, 34.84565], [118.797297, 34.842854], [118.802491, 34.845632], [118.804614, 34.852474], [118.803544, 34.8595], [118.804454, 34.870277], [118.807184, 34.877706], [118.814554, 34.886146], [118.818249, 34.894199], [118.829741, 34.911129], [118.853102, 34.936784], [118.860775, 34.944005], [118.859259, 34.962633], [118.860918, 34.978263], [118.86413, 34.986343], [118.86513, 34.993229], [118.862471, 35.021502]]]] } }] }
        // 注册地图
        echarts.registerMap('linyi', linyiJson);

        // 设置图表选项
        var option = {
            title: {
                text: '临沂市高等人才监测',
                left: 'center',
                textStyle: {
                    fontSize: 18,
                    color: '#2c3e50'
                },
                subtext: '实时高等人才数量展示',
                subtextStyle: {
                    color: '#7f8c8d'
                }
            },
            tooltip: {
                trigger: 'item',
                formatter: '{b}<br/>人才数量: {c}人'
            },
            series: [
                {
                    name: '临沂市',
                    type: 'map',
                    map: 'linyi',
                    roam: false,
                    label: {
                        show: true,
                        color: '#333',
                        fontSize: 10
                    },
                    emphasis: {
                        label: {
                            color: '#fff',
                            fontSize: 12
                        },
                        itemStyle: {
                            areaColor: '#3498db',
                            borderWidth: 1
                        }
                    },
                    itemStyle: {
                        areaColor: '#EEF1F6',
                        borderColor: '#AAA',
                        borderWidth: 0.5
                    },
                    data: []
                }
            ],
            visualMap: {
                min: 0,
                max: 100,
                text: ['高', '低'],
                realtime: false,
                calculable: true,
                inRange: {
                    color: ['#e0f3f8', '#abd9e9', '#74add1', '#4575b4', '#313695'].filter(c => c)
                },
                outOfRange: {
                    color: '#eee'
                },
                textStyle: {
                    color: '#333'
                },
                // 新增异常值处理
                handleError: true // ECharts 5+ 支持
            }
        };
        fetch('/home/listViews')
                 .then(response => response.json())
                 .then(data =>{
                 option.series[0].data = data;
                 const values = data.map(item => item.value);
        
                    option.visualMap.min = Math.min(...values);  // 最小值
                    option.visualMap.max = Math.max(...values);  // 最大值
                 myChart.setOption(option, true);
             } )
        // 使用配置项显示图表
        myChart.setOption(option);

        // 响应窗口大小变化
        window.addEventListener('resize', function () {
            myChart.resize();
        });

        // 菜单点击事件
        const hamburger = document.querySelector('.hamburger');
        const navLinks = document.querySelector('.nav-links');

        hamburger.addEventListener('click', () => {
            navLinks.classList.toggle('active');
            hamburger.classList.toggle('active');
        });

        // 点击导航链接后关闭菜单(移动设备)
        document.querySelectorAll('.nav-links a').forEach(link => {
            link.addEventListener('click', () => {
                navLinks.classList.remove('active');
                hamburger.classList.remove('active');
            });
        });

        // 页面切换功能
        const addStudentLink = document.getElementById('addStudentLink');
        const indexStudentLink = document.getElementById('indexStudentLink');
        const listStudentLink = document.getElementById('listStudentLink');
        const homeContent = document.getElementById('homeContent');
        const addStudentForm = document.getElementById('addStudentForm');
        const listStudentForm = document.getElementById('listStudentForm');
        const studentForm = document.getElementById('studentForm');
        const refreshBtn = document.getElementById('refreshBtn');
        const studentTableBody = document.getElementById('studentTableBody');
        const loadingMessage = document.getElementById('loadingMessage');
        const errorMessage = document.getElementById('errorMessage');
        const editModal = document.getElementById('editModal');
        const closeModalBtn = document.getElementById('closeModalBtn');
        const cancelBtn = document.getElementById('cancelBtn');

        // 首页
        indexStudentLink.addEventListener('click', (e) => {
            fetch('/home/listViews')
                .then(response => response.json())
                .then(data =>{
                option.series[0].data = data;
                myChart.setOption(option, true);
            } )
            e.preventDefault();
            addStudentForm.style.display = 'none';
            listStudentForm.style.display = 'none';
            homeContent.style.display = 'block';
        });

        // 添加人员
        addStudentLink.addEventListener('click', (e) => {
            e.preventDefault();
            homeContent.style.display = 'none';
            listStudentForm.style.display = 'none';
            addStudentForm.style.display = 'block';
        });

        // 人员列表
        listStudentLink.addEventListener('click', (e) => {
            e.preventDefault();
            addStudentForm.style.display = 'none';
            homeContent.style.display = 'none';
            listStudentForm.style.display = 'block';
            // 点击时自动加载数据
            fetchStudents();
        });

        // 关闭弹窗
        function closeModal() {
            editModal.classList.remove('show');
            setTimeout(() => {
                editModal.style.display = 'none';
            }, 300);
        }

        function openModal() {
            editModal.style.display = 'flex';
            setTimeout(() => {
                editModal.classList.add('show');
            }, 10);
        }

        closeModalBtn.addEventListener('click', closeModal);
        cancelBtn.addEventListener('click', closeModal);

        // 点击遮罩层关闭弹窗
        editModal.addEventListener('click', function (e) {
            if (e.target === editModal) {
                closeModal();
            }
        });

        // 刷新按钮
        refreshBtn.addEventListener('click', () => {
            fetchStudents();
        });

        // 获取人员数据
        function fetchStudents() {
            // 显示加载中，隐藏错误信息和表格
            loadingMessage.style.display = 'block';
            errorMessage.style.display = 'none';
            studentTableBody.innerHTML = '';
            const na = document.getElementById('searchInput').value
            fetch('/home/listStudents',{
                method: 'POST',
                    headers: {
                    'Content-Type': 'application/json',
                    },
                body: JSON.stringify({ name: na }),
                })
                .then(response => {
                    if (!response.ok) {
                        throw new Error('网络响应不正常');
                    }
                    return response.json();
                })
                .then(data => {
                    // 隐藏加载中
                    loadingMessage.style.display = 'none';

                    // 检查是否有数据
                    if (data && data.length > 0) {
                        // 填充表格
                        data.forEach(student => {
                            const row = document.createElement('tr');
                            row.innerHTML = `
                                    <td>${student.id || ''}</td>
                                    <td>${student.name || ''}</td>
                                    <td>${student.age || ''}</td>
                                    <td>${student.grade || ''}</td>
                                    <td>${student.local || ''}</td>
                                    <td>
                                        <button class="edit-btn" data-id="${student.id}">编辑</button>
                                        <button class="delete-btn" data-id="${student.id}">删除</button>
                                    </td>
                                `;
                            studentTableBody.appendChild(row);
                        });

                        // 添加编辑和删除按钮事件
                        document.querySelectorAll('.edit-btn').forEach(btn => {
                            btn.addEventListener('click', (e) => {
                                const row = e.target.closest('tr');
                                const cells = row.querySelectorAll('td');

                                const student = {
                                    id: cells[0].textContent,
                                    name: cells[1].textContent,
                                    age: cells[2].textContent,
                                    grade: cells[3].textContent,
                                    local: cells[4].textContent
                                };
                                editStudent(student);
                            });
                        });

                        document.querySelectorAll('.delete-btn').forEach(btn => {
                            btn.addEventListener('click', (e) => {
                                const studentId = e.target.getAttribute('data-id');
                                deleteStudent(studentId);
                            });
                        });
                    } else {
                        studentTableBody.innerHTML = '<tr><td colspan="5" style="text-align: center;">暂无人员数据</td></tr>';
                    }
                })
                .catch(error => {
                    console.error('获取人员数据失败:', error);
                    loadingMessage.style.display = 'none';
                    errorMessage.style.display = 'block';
                    errorMessage.textContent = '加载失败: ' + error.message;
                });
        }

        // 编辑人员
        function editStudent(student) {
            openModal();
            document.getElementById('editid').value = student.id;
            document.getElementById('editname').value = student.name;
            document.getElementById('editage').value = student.age;
            document.getElementById('editgrade').value = student.grade;
            document.getElementById('editlocal').value = student.local;
        }

        // 删除人员
        function deleteStudent(studentId) {
            if (confirm(`确定要删除ID为 ${studentId} 的人员吗?`)) {
                fetch(`/home/delStudents`, {
                    method: 'POST',
                    headers: {
                        'Content-Type': 'application/json',
                    },
                    body: JSON.stringify({ name: studentId }),
                }).then(response => {
                    if (!response.ok) {
                        throw new Error('HTTP请求失败，状态码: ' + response.status);
                    }
                    return response.text();
                }).then(responseText => {
                    if (responseText === '删除成功') {
                        showMessage('人员删除成功!', 'success');
                        if (listStudentForm.style.display === 'block') {
                            fetchStudents();
                        }
                    } else if (responseText === '失败') {
                        throw new Error('服务器返回删除失败');
                    } else {
                        throw new Error(responseText);
                    }
                }).catch(error => {
                    showMessage('删除失败: ' + error.message, 'error');
                });
            }
        }

        // 表单提交
        studentForm.addEventListener('submit', (e) => {
            e.preventDefault();

            // 获取表单数据
            const formData = {
                name: document.getElementById('name').value,
                age: document.getElementById('age').value,
                grade: document.getElementById('grade').value,
                local: document.getElementById('local').value
            };

            // 发送POST请求
            fetch('/home/addStudents', {
                method: 'POST',
                headers: {
                    'Content-Type': 'application/json',
                },
                body: JSON.stringify(formData),
            })
                .then(response => {
                    if (!response.ok) {
                        throw new Error('HTTP请求失败，状态码: ' + response.status);
                    }
                    return response.text();
                })
                .then(responseText => {
                    if (responseText === '添加成功') {
                        showMessage('人员添加成功!', 'success');
                        studentForm.reset();

                        // 如果当前在列表页面，刷新数据
                        if (listStudentForm.style.display === 'block') {
                            fetchStudents();
                        }
                    } else if (responseText === '失败') {
                        throw new Error('服务器返回添加失败');
                    } else {
                        throw new Error(responseText);
                    }
                })
                .catch((error) => {
                    showMessage('添加失败: ' + error.message, 'error');
                });
        });

        // 页面加载时，如果直接在列表页面，则加载数据
        if (listStudentForm.style.display === 'block') {
            fetchStudents();
        }

        // 修改提交
        document.getElementById('saveBtn').addEventListener('click', async function () {
            // 获取表单数据
            const formData = {
                id: parseInt(document.getElementById('editid').value),
                name: document.getElementById('editname').value,
                age: document.getElementById('editage').value,
                grade: document.getElementById('editgrade').value,
                local: document.getElementById('editlocal').value
            };

            try {
                // 禁用按钮防止重复提交
                this.disabled = true;
                this.textContent = '保存中...';

                // 发送POST请求
                const response = await fetch('/home/editStudents', {
                    method: 'POST',
                    headers: {
                        'Content-Type': 'application/json',
                    },
                    body: JSON.stringify(formData)
                });

                const responseText = await response.text();

                if (!response.ok) {
                    throw new Error(`HTTP请求失败，状态码: ${response.status}`);
                }

                if (responseText === '修改成功') {
                    showMessage('修改成功', 'success');
                    closeModal();
                    if (listStudentForm.style.display === 'block') {
                        fetchStudents();
                    }
                } else {
                    throw new Error(responseText || '保存失败');
                }
            } catch (error) {
                showMessage('保存失败: ' + error.message, 'error');
                console.error('Error:', error);
            } finally {
                this.disabled = false;
                this.textContent = '保存';
            }
        });

        // 显示提示信息
        function showMessage(msg, type = 'info') {
            const box = document.getElementById('messageBox');
            box.className = `message-box ${type}`;
            box.textContent = msg;

            // 先移除show类确保动画可以重新播放
            box.classList.remove('show');
            // 强制重绘
            void box.offsetWidth;

            setTimeout(() => box.classList.add('show'), 10);
            setTimeout(() => box.classList.remove('show'), 3000);
        }
    </script>
</body>
</html>